Skip to content

handle new optional merge retry semantics - #34

Merged
zac-pierre merged 1 commit into
mainfrom
zac/merge-tip-modes
Jun 18, 2026
Merged

handle new optional merge retry semantics#34
zac-pierre merged 1 commit into
mainfrom
zac/merge-tip-modes

Conversation

@zac-pierre

@zac-pierre zac-pierre commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

merge() has two target-tip modes:

  • Provide expectedTargetSha when the target branch must still point at a specific commit. If the target moved, the merge fails with 409.
  • Omit expectedTargetSha when you want Code Storage to merge into the current target tip. For native Code Storage targets, the gateway may retry stale target or repository movement internally while keeping the originally resolved source commit pinned.

This doesn't require any active changes to the SDK surface, this change just clarifies the two modes and makes the tests clearer.

@zac-pierre
zac-pierre merged commit 052dfd7 into main Jun 18, 2026
3 checks passed
@zac-pierre
zac-pierre deleted the zac/merge-tip-modes branch June 18, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants